package edu.sctu.xiangkun.day201505.day20150527.eatmeals;

/**
 * Created by lenovo on 2015/5/27.
 */
public class StudentCard {

    private String department;
    private String name;
    private int studentnumber;
    private int balance;


    public void setDepartment(String department){
        this.department =department;
    }

    public String getDepartment(){
        return department;
    }

    public void setName(String name){
        this.name =name;
    }

    public String getName(){
        return name;
    }

    public void setStudentnumber(int studentnumber){
        this.studentnumber =studentnumber;
    }

    public int getStudentnumber(){
        return studentnumber;
    }


    public int getBalance(){
        int balance = (int)(Math.round(Math.random()*30));
        return balance;
    }
}
